﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApplicationExecutorUpdate.aspx.cs" Inherits="CentralOffice.WebClient.Tasks.ApplicationExecutorUpdate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>查看申请</title>
        <link rel="stylesheet" type="text/css" href="../theme/2/style.css" />
    <script src="../inc/js/ccorrect_btn.js" type="text/javascript"></script>
</head>
<body>
<body class="bodycolor" topmargin="5">

<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="../images/sys_config.gif" WIDTH="22" HEIGHT="20" align="absmiddle" /><span class="big3">申请信息</span></td>
  </tr>
</table>

    <form id="form1" runat="server"><ajaxToolkit:ToolkitScriptManager runat="server" ID="sm"  />
<table class="TableBlock "  width="98%">
<tr width=100%>
       <td nowrap class="TableData" style="width:120px;">申请编号：</td><td nowrap class="TableData fontBold" colspan="3"><asp:Literal ID="lblApplicationCode" runat="server"></asp:Literal></td>
   </tr>
   <tr width=100%>
       <td nowrap class="TableData" style="width:120px;">申请名称：</td><td nowrap class="TableData fontBold" colspan="3"><asp:Literal ID="lblName" runat="server"></asp:Literal></td>
   </tr>
   <tr>
    <td nowrap class="TableData" style="width:120px;">申请人：</td><td nowrap class="TableData fontBold"><asp:Literal ID="lblApplicant" runat="server"></asp:Literal></td>
    <td nowrap class="TableData" style="width:120px;">申请日期：</td><td nowrap class="TableData fontBold"><asp:Literal ID="lblDateOfApplication" runat="server"></asp:Literal></td>
   </tr>
   <tr><td nowrap class="TableData">审批内容：</td><td nowrap class="TableData fontBold" colspan="3"><asp:Literal ID="lblApprovalContent" runat="server"></asp:Literal></td></tr>
   <tr>
       <td nowrap class="TableData">申请状态：</td><td nowrap class="TableData fontBold"><asp:Literal ID="lblStatus" runat="server"></asp:Literal></td>
       <td class="TableData">附件：</td><td class="TableData fontBold"><asp:HyperLink ID="lblAttachments" runat="server" Visible="false"></asp:HyperLink></td>
   </tr>
   <tr><td nowrap class="TableData">执行人：</td><td nowrap class="TableData fontBold" colspan="3"><asp:Literal ID="lblApplicationExecutor" runat="server"></asp:Literal></td></tr>
   <tr><td nowrap class="TableData">执行说明：</td><td nowrap class="TableData fontBold" colspan="3"><asp:Literal ID="lblExecutiveDescription" runat="server"></asp:Literal></td></tr>
   

</table>

<div style="margin-top:20px; margin-left:8px;"><h3>执行人修改</h3></div>

<table class="TableBlock" width="90%" align="center">
    
    <tr><td nowrap class="TableData" style="width: 113px">执行人：</td><td nowrap class="TableData">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" RenderMode="Inline"><ContentTemplate>
    <input type="text" id="txtExecutorReadOnly" style="width:82%" name="txtExecutorReadOnly" class="SmallStatic" runat="server" readonly="readonly" /><asp:HiddenField ID="txtExecutor" runat="server" />&nbsp;<asp:LinkButton ID="btnShowPopup" CommandName="ApprovedBy" runat="server" OnClick="btnShowPopup_Click" CssClass="orgAdd">选择</asp:LinkButton>
    </ContentTemplate><Triggers><asp:AsyncPostBackTrigger ControlID="btnOK" /></Triggers></asp:UpdatePanel>&nbsp;<a href="javascript:;" class="orgClear" onclick="$get('<%= txtExecutorReadOnly.ClientID %>').value='';$get('<%= txtExecutor.ClientID %>').value='';">清空</a>
    </td></tr>
    <tr><td nowrap class="TableControl" colspan="2" align="center"><asp:Button ID="btnSave" runat="server" Text="变更执行人" CssClass="BigButton" OnClick="btnSave_Click"   /> </td></tr>
</table>

<asp:Panel ID="pnlPopup" runat="server" CssClass="x-pne" style="display:none; width:460px;">
    <asp:UpdatePanel ID="updPnlDepartment" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    
    <asp:Button id="btnShowEdit" runat="server" style="display:none" />
    <ajaxToolKit:ModalPopupExtender ID="mdlDetailView" runat="server" 
        BehaviorID="detailView" 
        TargetControlID="btnShowEdit" 
        PopupControlID="pnlPopup" 
        CancelControlID="btnClose" BackgroundCssClass="modalBackground" 
        PopupDragHandleControlID="pnlDrag" />
        
    <asp:Panel ID="pnlDrag" runat="server" CssClass="corner-bg x-pne-lt x-pne-left">
        <div class="corner-bg x-pne-rt x-pne-right">
            <div class="corner-bg x-pne-t dragTitle">
                <div class="x-pne-btn" id="Div1" onclick="$find('detailView').hide();"></div>
                <div class="x-pne-caption font dragTitle"><span>请选择执行人</span></div>
            </div>
        </div>
    </asp:Panel>
    <div>
    
        <div class="side-bg x-pne-l">
            <div class="side-bg x-pne-r">
                <div class="x-pne-c" style="WIDTH: 448px;">
					<div style="margin:10px;font-size:9pt;" class="wrapper">
					
<div id="div2" style="width:430px;height:300px; overflow:auto;">
<asp:TreeView ID="tvEmp" runat="server" EnableViewState="true" OnLoad="tvEmp_Load"></asp:TreeView>
</div>
                    
                    <!-- 下面是确认按钮 -->
                    <div style="width:328px; margin-top:16px;">
                        <table  style="width:100%; margin-left:40px;">
                            <tr>
                                <td>
<div class="btn-side btn-bg"></div>
<div class="btn-body btn-bg" style="background-position: 0px 168px; width: 66px"><asp:Button ID="btnOK" runat="server" Text="  确定  " CssClass="font" OnClick="btnOK_Click" /></div>
<div class="btn-side btn-bg" style="background-position: 0px 189px"></div>

                                </td>
                                <td>
<div class="btn-side btn-bg"></div>
<div class="btn-body btn-bg" style="background-position: 0px 168px; width: 66px;"><asp:Button ID="btnClose" runat="server" Text="  取消  " CssClass="font" /></div>
<div class="btn-side btn-bg" style="background-position: 0px 189px"></div>
                                </td>
                            </tr>
                        </table>
                    </div>
                        
					</div>
                </div>
            </div>
        </div>

        <div class="corner-bg x-pne-lb x-pne-left">
            <div class="corner-bg x-pne-rb x-pne-right">
                <div class="corner-bg x-pne-b"></div>
            </div>
        </div>
    </div>
    
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Panel>

<asp:updateprogress id="updateProgress"  runat="server">
    <progresstemplate>
        <div id="progressBackgroundFilter"></div>
        <div id="processMessage">正在处理数据，请稍等...<br /><br /><img alt="Loading" src="../images/loading_16.gif" /></div>
    </progresstemplate>
</asp:updateprogress>

    </form>
<script type="text/javascript">
    function selectAll() {
        var tree = document.getElementById("<%=tvEmp.ClientID%>");
        if (typeof (tree) === "undefined" && tree === null) return;

        var checkBoxs = tree.getElementsByTagName('INPUT');
        for (var i = 0; i < checkBoxs.length; i++) {
            if (checkBoxs[i].type == "checkbox") {
                checkBoxs[i].checked = true;
            }
        }
    }

    function reverse() {
        var tree = document.getElementById("<%=tvEmp.ClientID%>");
        if (typeof (tree) === "undefined" && tree === null) return;

        var checkBoxs = tree.getElementsByTagName('INPUT');
        for (var i = 0; i < checkBoxs.length; i++) {
            if (checkBoxs[i].type == "checkbox") {
                checkBoxs[i].checked = !checkBoxs[i].checked;
            }
        }
    }

    function OnTreeNodeChecked() {
        var ele = window.event.srcElement;
        if (ele.type == 'checkbox') {
            var childrenDivID = ele.id.replace('CheckBox', 'Nodes');
            var div = document.getElementById(childrenDivID);
            if (div == null) return;
            var checkBoxs = div.getElementsByTagName('INPUT');
            for (var i = 0; i < checkBoxs.length; i++) {
                if (checkBoxs[i].type == 'checkbox')
                    checkBoxs[i].checked = ele.checked;
            }
        }
    }

    function validateClient() {
        if (document.getElementById("txtExecutor").value.length == 0) {
            alert("必须选定执行者！");
            return false;
        }
        return true;
    }
</script>
    
    
</body>
</html>